ifeq ($(TARGET_ARCH),aarch64)
libhdcrypto=arm64/libhdcrypto.a
else ifeq ($(TARGET_ARCH),arm)
libhdcrypto=arm/libhdcrypto.a
else
$(error "no support TARGET_ARCH:${TARGET_ARCH}")
endif

build_mac: build_mac.c crc32.c ${libhdcrypto}
	${CC} -o $@ $^ -static

clean:
	rm *.o crc_mac
